﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint.Security;
using ESF.SharePoint.Entities;
using Microsoft.Office.Server.ActivityFeed;
using Microsoft.Practices.SharePoint.Common;
using System.Security.Permissions;

namespace ESF.SharePoint.Mappers
{
    class ActivityEventCollectionMapper
    {
        
        public static List<CustomActivityEvent> MapList(ActivityEventsCollection activities)
        {
            List<CustomActivityEvent> list = new List<CustomActivityEvent>();
            foreach (ActivityEvent activity in activities)
            {
                list.Add(ActivityEventPropertyMapper.CreateEntity(activity));
            }

            return list;
        }
    }
}
